
<?php if($this->getResultCount()): ?>
<?php echo $this->getMessagesBlock()->toHtml() ?>
    <?php if ($messages = $this->getNoteMessages()):?>
    <p class="note-msg">
        <?php foreach ($messages as $message):?>
            <?php echo $message?><br />
        <?php endforeach;?>
    </p>
    <?php endif; ?>
    <?php echo $this->getProductListHtml() ?>
<?php else: ?>
<div class="note-msg">
    <?php echo ($this->getNoResultText()) ? $this->getNoResultText() : $this->__('Your search returns no results.') ?>
    <?php if ($messages = $this->getNoteMessages()):?>
        <?php foreach ($messages as $message):?>
        <br /><?php echo $message?>
        <?php endforeach;?>
    <?php endif; ?>
</div>
<?php endif; ?>
<?php 
$menu = $this->getChildHtml("catalog.category");
if($menu):
?>
<nav id="menu">
    <?php echo $menu; ?>
</nav>
<?php endif;?>